package com.amiu.shiro.db.role_permission;

public class RolePermission {
	private long id;
	private long role_id;
	private long permission_id;
	private String description;
	
	public RolePermission (){}
	 
	public RolePermission (long role_id,long permission_id,String description){
		this.permission_id = permission_id;
		this.role_id = role_id;
		this.description = description;
	}
	
	public RolePermission (long id,long role_id,long permission_id,String description){
		this.id = id;
		this.permission_id = permission_id;
		this.role_id = role_id;
		this.description = description;
	}
	
	public long getRole_id() {
		return role_id;
	}
	public void setRole_id(long role_id) {
		this.role_id = role_id;
	}
	public long getPermission_id() {
		return permission_id;
	}
	public void setPermission_id(long permission_id) {
		this.permission_id = permission_id;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	@Override
	public String toString() {
		return "$RolePermission$ --> ID: "+id+",ROLE_ID: "+role_id+",PERMISSION_ID: "+permission_id+",DESCRIPTION: "+description;
	}
}
